<!--#include file="inc/AspCms_SettingClass.asp" -->
<%CheckLogin()%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>Top</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />

<link href="css/timoo/uikit.min.css" rel="stylesheet">
<link href="css/timoo/timoo.css" rel="stylesheet">

<script src="js/timoo/jquery.min.js"></script>
<script src="js/timoo/uikit.min.js"></script>
<script src="js/timoo/uikit-icons.min.js"></script>
<script src="js/timoo/timoo.js"></script>
</head>
<body>
<div class="tm-top">
    <div class="uk-grid main">
        <div class="uk-width-1-5 logo">
            <span class="site-name"><img src="images/loginlogo.png"></span>
        </div>
        <div class="uk-clearfix uk-width-4-5">
            <div class="uk-float-right nav-box">
                <div class="site-menu">
                    <div class="uk-clearfix welcome">
                        <ul class="uk-float-right uk-clearfix">
                            <li class="uk-float-left">
                                <span class="text">你好：</span>
                                <span class="group"><%=session("GroupName")%></span>
                                <span class="name"><%=session("adminName")%></span>
                            </li>
                            <li class="uk-float-left">
                                <a href="editPass.asp" target="main">修改密码</a>
                            </li>
                            <li class="uk-float-left">
                                <a href="login.asp?action=logout" target="_parent">注销登录</a>
                            </li>
                            <li class="uk-float-left">
                                <a href="right.asp" target="main">后台首页</a>
                            </li>
                            <li class="uk-float-left">
                                <a href="../index.asp?lg=<%=session("LanguageAlias")%>" target="_blank">网站首页</a>
                            </li>
                            <li class="uk-float-left"><a href="home.asp" target="main">后台导航</a></li>
                            <li class="uk-clearfix uk-float-left lang">
                                <span class="uk-float-left text">语言切换：</span>
                                <%
                                    dim languageName
                                    set rs=conn.exec("select LanguageID, LanguageName, Alias from {prefix}Language where LanguageStatus=1 order by LanguageOrder ,LanguageID", "exe")
                                    do while not rs.eof 
                                    if cint(session("languageID")) = cint(rs(0)) then 
                                        echo "<a class=""uk-float-left on"" href=""index.asp?id="&rs(0)&""" target=""_top"">"&rs(1)&"</a>"
                                        languageName=rs(1)
                                    else
                                        echo "<a class=""uk-float-left"" href=""index.asp?id="&rs(0)&""" target=""_top"" >"&rs(1)&"</a> "
                                    end if
                                    rs.moveNext
                                    loop
                                %>
                            </li>
                        </ul>
                    </div>
                    <div class="menu">
                        <ul class="uk-clearfix">
                            <%
                                dim rs,i,sql,menuid,SceneStr,firstID
                                'die isnul(rCookie("SceneMenu")) 
                                
                                if not isnul(session("SceneMenu")) then 
	                                SceneStr = " and MenuID in("&session("SceneMenu")&")"
                                end if

                                if session("GroupMenu")="all" then
	                                sql = "select MenuID, MenuName, (select Count(*) from {prefix}Menu as b where MenuStatus=1 and b.ParentID=a.MenuID ) from {prefix}Menu as a where MenuStatus=1 and ParentID=0  "&SceneStr&" order by MenuOrder"
                                else
	                                sql="select MenuID, MenuName, (select Count(*) from {prefix}Menu as b where MenuStatus=1 and b.ParentID=a.MenuID ) from {prefix}Menu as a where MenuStatus=1 and ParentID=0 and MenuID in("&session("GroupMenu")&") "&SceneStr&" order by MenuOrder"
                                end if
                                
                                set rs = conn.exec(sql, "r1")
                                    i  = 1
                                do while not rs.eof 
	                                menuid = rs(0)
	                                if i = 1 then 
		                                echo "<li id='d"&i&"' class=""thisclass""><a href=""javascript:OpenMenu("&rs(0)&",'','',"&i&")"">"& rs(1)&"</a></li>"&vbcrlf
	                                else
		                                echo "<li id='d"&i&"'><a href=""javascript:OpenMenu("&rs(0)&",'','',"&i&")"">"& rs(1)&"</a></li>"&vbcrlf
	                                end if
	                                rs.moveNext
	                                i = i+1
                                loop
                                rs.close : set rs=nothing
                            %>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
<script type="text/javascript" defer="defer" src="js/menu.js"></script>